<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工具函数</title>
</head>
<body>
    <script>
        // 1 用逗号分隔数组
        // function numberWithCommas(x){
        //     return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,',');
        // }
        // 
        const num = new NodeList('0')
        // num.next = new NodeList('2')
        // console.log(num,'numnumnum');
        console.log('numnumnum');
    </script>
</body>
</html>